<template>



</template>




<script setup>
import { ref,onMounted } from 'vue'
import axios from 'axios'
import { useRoute } from 'vue-router'
const route = useRoute()


const code = route.query.code


const postcode = () => {
    const type = localStorage.getItem('type')

  axios.post('http://127.0.0.1:8000/users/dingtalkcallback/', { code: code,type: type })
  .then((res) => {
    console.log(res)
    
  })

}


onMounted(() => {
  postcode()
})



</script>